package be.fomp.jeve.model.data.standard.conquerablestationlist;

import org.jdom.Element;

import be.fomp.jeve.model.data.standard.ConquerableStationList.Outpost;

public final class OutpostImpl implements Outpost {
	static final long serialVersionUID = 1L;
	
	private Integer stationID;
	private String stationName;
	
	private Integer stationTypeID;
	private Integer solarSystemID;
	private Integer corporationID;
	
	private String corporationName;
	
	OutpostImpl(Element outpostElement){
		this.stationID = Integer.parseInt(outpostElement.getAttributeValue("stationID"));
		this.stationName = outpostElement.getAttributeValue("stationName");
		
		this.stationTypeID = Integer.parseInt(outpostElement.getAttributeValue("stationTypeID"));
		this.solarSystemID = Integer.parseInt(outpostElement.getAttributeValue("solarSystemID"));
		this.corporationID = Integer.parseInt(outpostElement.getAttributeValue("corporationID"));
		
		this.corporationName = outpostElement.getAttributeValue("corporationName");
	}
	
	public Integer getStationID() {return this.stationID;}
	public String getStationName() {return this.stationName;}

	public Integer getStationTypeID() {return this.stationTypeID;}
	public Integer getSolarSystemID() {return this.solarSystemID;}
	public Integer getCorporationID() {return this.corporationID;}
	
	public String getCorporationName() {return this.corporationName;}
}
